package com.yeyks.commonReference.pojo.param;

import com.yeyks.common.constants.hotel.HotelSourceType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel
public class OrderInfoC2bPlaceAnOrderParam implements Serializable {

    private static final long serialVersionUID = -7851396205776440628L;

    @ApiModelProperty(value = "用户id", hidden = true)
    private Integer userId;

    @ApiModelProperty(value = "3.3c2b抢单价")
    private Integer price;

    @ApiModelProperty(value = "房间id")
//    @NotNull(message = "房间id必填")
    private Integer roomId;

    @ApiModelProperty(value = "开始时间")
    @NotNull(message = "开始时间必填")
    private Date startDate;

    @ApiModelProperty(value = "结束时间")
    @NotNull(message = "结束时间必填")
    private Date endDate;

    @ApiModelProperty(value = "房间数量")
    @NotNull(message = "房间数量必填")
    private Integer roomCount;

    @ApiModelProperty(value = "联系人")
    @NotNull(message = "联系人必填")
    private String consumerName;

    @ApiModelProperty(value = "联系电话")
    @NotNull(message = "联系电话必填")
    private String consumerPhone;

    @ApiModelProperty(value = "优惠券id")
    private Integer userCouponInfoId;

    @ApiModelProperty(value = "备注")
    private String leaveMessage;

    @ApiModelProperty(value = "订单类型,0 3.3c3b,1 vip,2 b3c 10,3.4抢单")
    @NotNull(message = "订单类型不能为空")
    private Integer vipFlag;

    @ApiModelProperty(value = "v3.4抢单信息的时间戳")
    private Long timestamp;


    @ApiModelProperty(value = "v3.6抢单信息的时间戳")
    private String sourceType = HotelSourceType.YYKS;
    @ApiModelProperty(value = "v3.6抢单信息的时间戳")
    private String sourceRoomId;

}
